using ERPBackend.Models;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace ERPBackend.Services
{
    public interface ISecondLevelCategoryService
    {
        Task<IEnumerable<SecondLevelCategory>> GetAllSecondLevelCategoriesAsync();
        Task<SecondLevelCategory> GetSecondLevelCategoryByIdAsync(int id);
        Task<IEnumerable<SecondLevelCategory>> GetSecondLevelCategoriesByFirstLevelCategoryIdAsync(int firstLevelCategoryId);
        Task<SecondLevelCategory> CreateSecondLevelCategoryAsync(SecondLevelCategory secondLevelCategory);
        Task<bool> UpdateSecondLevelCategoryAsync(SecondLevelCategory secondLevelCategory);
        Task<bool> DeleteSecondLevelCategoryAsync(int id);
    }
}